package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the TM_ESTADO_ORIG_PARTIDA database table.
 * 
 */
@Entity
@Table(name="TM_ESTADO_ORIG_PARTIDA")
public class TmEstadoOrigPartida implements Serializable {
	private static final long serialVersionUID = 1L;
	private long estadoOrigId;
	private String descripcion;
	private String inEstPart;
	private String inEstd;
	private TmAreaRegistral tmAreaRegistral;

    public TmEstadoOrigPartida() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="ESTADO_ORIG_ID", unique=true, nullable=false)
	public long getEstadoOrigId() {
		return this.estadoOrigId;
	}

	public void setEstadoOrigId(long estadoOrigId) {
		this.estadoOrigId = estadoOrigId;
	}


	@Column(length=50)
	public String getDescripcion() {
		return this.descripcion;
	}

	public void setDescripcion(String descripcion) {
		this.descripcion = descripcion;
	}


	@Column(name="IN_EST_PART", length=1)
	public String getInEstPart() {
		return this.inEstPart;
	}

	public void setInEstPart(String inEstPart) {
		this.inEstPart = inEstPart;
	}


	@Column(name="IN_ESTD", length=1)
	public String getInEstd() {
		return this.inEstd;
	}

	public void setInEstd(String inEstd) {
		this.inEstd = inEstd;
	}


	//bi-directional many-to-one association to TmAreaRegistral
    @ManyToOne
	@JoinColumn(name="AREA_REG_ID", nullable=false)
	public TmAreaRegistral getTmAreaRegistral() {
		return this.tmAreaRegistral;
	}

	public void setTmAreaRegistral(TmAreaRegistral tmAreaRegistral) {
		this.tmAreaRegistral = tmAreaRegistral;
	}
	
}